//
//  FCViewController.m
//  customerRelation
//
//  Created by 64912907 on 02/13/2019.
//  Copyright (c) 2019 64912907. All rights reserved.
//

#import "FCViewController.h"
#import "FCCustomerRelationViewController.h"
#import <Define.h>
#import <loginmock.h>
#import "FCRelationBindRequestViewController.h"
//#import "FCAssignEmployeeViewController.h"

@interface FCViewController ()

@end

@implementation FCViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
//    UIButton *goRelationshipManagementVCButton = [UIButton buttonWithType:UIButtonTypeCustom];
//    goRelationshipManagementVCButton.frame = CGRectMake(100, 100, 100, 50);
//    goRelationshipManagementVCButton.backgroundColor = FCStatuSimpleGrayColor;
//    [goRelationshipManagementVCButton setTitle:@"关系管理" forState:UIControlStateNormal];
//    [goRelationshipManagementVCButton setTitleColor:FCTxtColor forState:UIControlStateNormal];
//    
//    [goRelationshipManagementVCButton addTarget:self action:@selector(goRelationshipManagementVC) forControlEvents:UIControlEventTouchUpInside];
//    
//    [self.view addSubview:goRelationshipManagementVCButton];
    [loginmock mockLoginWithBlock:^{
        FCCustomerRelationViewController *relationshipManagementVC = [[FCCustomerRelationViewController alloc] init];
        [self.navigationController pushViewController:relationshipManagementVC animated:YES];
    }];
//    FCRelationBindRequestViewController *bindVC = [[FCRelationBindRequestViewController alloc] init];
//    [self.navigationController pushViewController:bindVC animated:YES];
}

- (void)goRelationshipManagementVC{
    [loginmock mockLoginWithBlock:^{
        FCCustomerRelationViewController *relationshipManagementVC = [[FCCustomerRelationViewController alloc] init];
        [self.navigationController pushViewController:relationshipManagementVC animated:YES];
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
